package com.smcdd.cdb.dbo.cdb_dbo.service.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：Administrator on 2017/10/16 11:43
 * 邮箱：zhanghuaiha@gmail.com
 */

public class PageMap implements Parcelable {
    private String latitude;
    private String longitude;
    private String name;
    private String status;

    public PageMap(){}

    public PageMap(Parcel in) {
        latitude = in.readString();
        longitude = in.readString();
        name = in.readString();
        status = in.readString();
        maintained_status = in.readInt();
    }

    public static final Creator<PageMap> CREATOR = new Creator<PageMap>() {
        @Override
        public PageMap createFromParcel(Parcel in) {
            return new PageMap(in);
        }

        @Override
        public PageMap[] newArray(int size) {
            return new PageMap[size];
        }
    };

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public int getMaintained_status() {
        return maintained_status;
    }

    public void setMaintained_status(int maintained_status) {
        this.maintained_status = maintained_status;
    }

    private int maintained_status;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(latitude);
        dest.writeString(longitude);
        dest.writeString(name);
        dest.writeString(status);
        dest.writeInt(maintained_status);
    }
}
